
import { AK, EntityCreateType } from "../const/ModelConst";
import AModelFmulaUtils from "../utils/AModelFmulaUtils";
import { XQType } from "./enum";

export default class CommonMerge implements IParamsMerge {
    constructor() {

    }
    private initValue(t, key: string, s) {
        if (t && !t[key]) {
            t[key] = s;
        }
    }
    merge(t: any, id: any) {
        let iddd = parseInt(id) + EntityCreateType.modeStart;

        this.initValue(t, AK.p_tjbh, '');
        this.initValue(t, AK.p_zdybh, '');
        this.initValue(t, AK.p_azbh, '');
        this.initValue(t, AK.p_qdsl, 1);
        this.initValue(t, AK.p_dbsl, 0);
        this.initValue(t, AK.p_mbbh, '');
        this.initValue(t, AK.p_zhbh, '');
        this.initValue(t, AK.p_pjbh, '');
        this.initValue(t, AK.p_code, '');
        this.initValue(t, AK.p_scth, '');
        this.initValue(t, AK.p_attachPjbh, 0);
        this.initValue(t, AK.p_zdhz, '');
        this.initValue(t, AK.p_qzct, 0);
        this.initValue(t, AK.p_pjzsbhList, "");
        this.initValue(t, AK.p_pjlist, []);




        if (!(iddd == EntityCreateType.WallCornerCShapeSlot || iddd == EntityCreateType.CornerPlate
            || iddd == EntityCreateType.OutCornerCShapeSlot || iddd == EntityCreateType.InnerCornerCShapeSlot
            || iddd == EntityCreateType.CShapeSlot || iddd == EntityCreateType.FloorPlank
            || iddd == EntityCreateType.BeamBottomPlank || iddd == EntityCreateType.MonoclinicPlank
            || iddd == EntityCreateType.DoubleObliquePlank || iddd == EntityCreateType.AngleAluminum)) {
            if (!t['p_skkw']) {
                t['p_skkw'] = t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '';
                if (t['C' + AK.sbkk]) {
                    t['p_skkw'] = t['C' + AK.sbkk] ? t['C' + AK.sbkk].toString() : '';
                }
            }
        }

        if (iddd === EntityCreateType.KSlab) {
            if (!t['p_r3dw']) {
                if (t['C' + AK.lgkdw] && t['p_facehole'] === 1) {
                    t['p_r3dw'] = AModelFmulaUtils.getStringByVec2Arr(t['C' + AK.lgkdw]);
                    t['p_r3'] = t['LGKDia'].toString();
                }
                if (t['C' + AK.dpkfa]) {
                    t['p_r3dw'] = AModelFmulaUtils.getStringByVec2Arr(t['C' + AK.dpkfa]);
                    t['p_r3'] = t['KKDB'] + '*' + t['KKCB'];
                }

                if (!t['p_r3dw']) {
                    t['p_r3dw'] = '';
                }
            }
        }

        if (!(iddd == EntityCreateType.CornerPlate || iddd == EntityCreateType.PlanK
            || iddd == EntityCreateType.FloorPlank || iddd == EntityCreateType.DoubleObliquePlank
            || iddd == EntityCreateType.BeamBottomPlank || iddd == EntityCreateType.MonoclinicPlank
            || iddd == EntityCreateType.PlankCouch || iddd == EntityCreateType.GroovePlank
            || iddd == EntityCreateType.AngleAluminum || iddd == EntityCreateType.ARC_CORNER_AL
            || iddd == EntityCreateType.BottomAngleAluminum || iddd == EntityCreateType.LAngleAluminum ||
            iddd == EntityCreateType.KSlab)) {
            if (!t['p_r1dw']) {
                if (t['C' + AK.lgkdw] && t['p_facehole'] === 1) {
                    t['p_r1dw'] = AModelFmulaUtils.getStringByVec2Arr(t['C' + AK.lgkdw]);
                    t['p_r1'] = t['LGKDia'].toString();
                }
                if (t['C' + AK.dpkfa]) {
                    t['p_r1dw'] = AModelFmulaUtils.getStringByVec2Arr(t['C' + AK.dpkfa]);
                    t['p_r1'] = t['KKDB'] + '*' + t['KKCB'];
                }

                if (!t['p_r1dw']) {
                    t['p_r1dw'] = '';
                }
            }
        }

        switch (iddd) {
            case EntityCreateType.OutWallSlab:
            case EntityCreateType.InnerWallSlab:
            case EntityCreateType.BeamSideSlab:
            case EntityCreateType.BeamBottomSlab:
            case EntityCreateType.FloorSlab:
            case EntityCreateType.KSlab:
                this.initValue(t, AK.system_type, 0);
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                this.initValue(t, AK.p_sldw, t['C' + AK.sldw] ? t['C' + AK.sldw].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_qkw, 20);
                this.initValue(t, AK.p_qkh, 25);
                this.initValue(t, AK.p_skqkdw, '');
                this.initValue(t, AK.p_xkqkdw, '');
                this.initValue(t, AK.p_zkqkdw, '');
                this.initValue(t, AK.p_ykqkdw, '');
                this.initValue(t, AK.p_sksctype, XQType.normal);
                this.initValue(t, AK.p_xksctype, XQType.normal);
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                if (iddd == EntityCreateType.InnerWallSlab) {
                    this.initValue(t, AK.p_isdjl, 1);
                } else {
                    this.initValue(t, AK.p_isdjl, 0);
                }
                this.initValue(t, AK.p_zkkw_cjkj, t[AK.zybk_cjkj] ? t[AK.zybk_cjkj].toString() : '');
                this.initValue(t, AK.p_ykkw_cjkj, t[AK.zybk_cjkj] ? t[AK.zybk_cjkj].toString() : '');
                this.initValue(t, AK.p_skkw_cjkj, t[AK.sxbk_cjkj] ? t[AK.sxbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xkkw_cjkj, t[AK.sxbk_cjkj] ? t[AK.sxbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xb1kw, t[AK.xbk_cjkj] ? t[AK.xbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xb2kw, t[AK.xbk_cjkj] ? t[AK.xbk_cjkj].toString() : '');

                this.initValue(t, AK.p_qkfbtype, 0);
                this.initValue(t, AK.p_qkfbny, 0);
                this.initValue(t, AK.p_qkbktype, [0, 0, 0, 0]);

                // this.initValue(t, AK.p_zklpcdw, t['C' + AK.zybklpc] ? t['C' + AK.zybklpc].toString() : '');
                // this.initValue(t, AK.p_yklpcdw, t['C' + AK.zybklpc] ? t['C' + AK.zybklpc].toString() : '');
                // this.initValue(t, AK.p_sklpcdw, t['C' + AK.sxbklpc] ? t['C' + AK.sxbklpc].toString() : '');
                // this.initValue(t, AK.p_xklpcdw, t['C' + AK.sxbklpc] ? t['C' + AK.sxbklpc].toString() : '');

                break;
            case EntityCreateType.ECPlate:
                this.initValue(t, AK.p_ecplateLtype, 0);
                this.initValue(t, AK.system_type, 0);
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');

                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_qkw, 20);
                this.initValue(t, AK.p_qkh, 25);

                this.initValue(t, AK.p_zkqkdw, '');
                this.initValue(t, AK.p_ykqkdw, '');
                this.initValue(t, AK.p_xzfentype, XQType.normal);
                this.initValue(t, AK.p_syfentype, XQType.normal);
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                this.initValue(t, AK.p_yctype, 0);
                break;
            case EntityCreateType.WallCornerCShapeSlot:
            case EntityCreateType.CShapeSlot:

                this.initValue(t, AK.system_type, 0);
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_r_r1, '');
                this.initValue(t, AK.p_r_r2, '');
                this.initValue(t, AK.p_r_r3, '');
                this.initValue(t, AK.p_r_r1dw, '');
                this.initValue(t, AK.p_r_r2dw, '');
                this.initValue(t, AK.p_r_r3dw, '');
                this.initValue(t, AK.p_qkw, 20);
                this.initValue(t, AK.p_qkh, 25);
                this.initValue(t, AK.p_zkqkdw, '');
                this.initValue(t, AK.p_ykqkdw, '');
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                this.initValue(t, AK.p_yfenkw, t['C' + AK.p_yfenkw] ? t['C' + AK.p_yfenkw].toString() : '');
                this.initValue(t, AK.p_zfenkw, t['C' + AK.p_zfenkw] ? t['C' + AK.p_zfenkw].toString() : '');
                this.initValue(t, AK.p_yypkk, t['C' + AK.Rpkk] ? t['C' + AK.Rpkk].toString() : '');
                this.initValue(t, AK.p_zypkk, t['C' + AK.Lpkk] ? t['C' + AK.Lpkk].toString() : '');

                // this.initValue(t, AK.p_zklpcdw, t['C' + AK.zybklpc] ? t['C' + AK.zybklpc].toString() : '');
                // this.initValue(t, AK.p_yklpcdw, t['C' + AK.zybklpc] ? t['C' + AK.zybklpc].toString() : '');
                // this.initValue(t, AK.p_sklpcdw, t['C' + AK.sxbklpc] ? t['C' + AK.sxbklpc].toString() : '');
                // this.initValue(t, AK.p_xklpcdw, t['C' + AK.sxbklpc] ? t['C' + AK.sxbklpc].toString() : '');

                if (iddd == EntityCreateType.CShapeSlot) {
                    this.initValue(t, AK.p_xzfentype, XQType.normal);
                    this.initValue(t, AK.p_syfentype, XQType.normal);
                    this.initValue(t, AK.p_xzxqtype, XQType.none);
                    this.initValue(t, AK.p_syxqtype, XQType.none);
                    this.initValue(t, AK.p_yctype, 0);
                    this.initValue(t, AK.p_zspkfa, t['C' + AK.p_zspkfa] ? t['C' + AK.p_zspkfa].toString() : '');
                    this.initValue(t, AK.p_yspkfa, t['C' + AK.p_yspkfa] ? t['C' + AK.p_yspkfa].toString() : '');
                } else if (iddd == EntityCreateType.WallCornerCShapeSlot) {
                    this.initValue(t, AK.p_sksctype, XQType.normal);
                    this.initValue(t, AK.p_syfentype, XQType.normal);
                }
                break;
            case EntityCreateType.ObliqueSlot:
                this.initValue(t, AK.system_type, 0);
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_r_r1, '');
                this.initValue(t, AK.p_r_r2, '');
                this.initValue(t, AK.p_r_r3, '');
                this.initValue(t, AK.p_r_r1dw, '');
                this.initValue(t, AK.p_r_r2dw, '');
                this.initValue(t, AK.p_r_r3dw, '');
                this.initValue(t, AK.p_qkw, 20);
                this.initValue(t, AK.p_qkh, 25);
                this.initValue(t, AK.p_zkqkdw, '');
                this.initValue(t, AK.p_ykqkdw, '');
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                this.initValue(t, AK.p_yfenkw, t['C' + AK.p_yfenkw] ? t['C' + AK.p_yfenkw].toString() : '');
                this.initValue(t, AK.p_zfenkw, t['C' + AK.p_zfenkw] ? t['C' + AK.p_zfenkw].toString() : '');
                this.initValue(t, AK.p_yypkk, t['C' + AK.Rpkk] ? t['C' + AK.Rpkk].toString() : '');
                this.initValue(t, AK.p_zypkk, t['C' + AK.Lpkk] ? t['C' + AK.Lpkk].toString() : '');

                this.initValue(t, AK.p_th, t[AK.H]);
                this.initValue(t, AK.p_bh, t[AK.H]);

                this.initValue(t, AK.p_xzfentype, XQType.normal);
                this.initValue(t, AK.p_syfentype, XQType.normal);
                this.initValue(t, AK.p_xzxqtype, XQType.none);
                this.initValue(t, AK.p_syxqtype, XQType.none);
                this.initValue(t, AK.p_yctype, 0);
                this.initValue(t, AK.p_zspkfa, t['C' + AK.p_zspkfa] ? t['C' + AK.p_zspkfa].toString() : '');
                this.initValue(t, AK.p_yspkfa, t['C' + AK.p_yspkfa] ? t['C' + AK.p_yspkfa].toString() : '');

                break;
            case EntityCreateType.InnerCornerCShapeSlot:
            case EntityCreateType.OutCornerCShapeSlot:
                this.initValue(t, AK.p_tl_r1, '');
                this.initValue(t, AK.p_tl_r2, '');
                this.initValue(t, AK.p_tl_r3, '');
                this.initValue(t, AK.p_tl_r1dw, '');
                this.initValue(t, AK.p_tl_r2dw, '');
                this.initValue(t, AK.p_tl_r3dw, '');
                this.initValue(t, AK.p_tr_r1, '');
                this.initValue(t, AK.p_tr_r2, '');
                this.initValue(t, AK.p_tr_r3, '');
                this.initValue(t, AK.p_tr_r1dw, '');
                this.initValue(t, AK.p_tr_r2dw, '');
                this.initValue(t, AK.p_tr_r3dw, '');
                this.initValue(t, AK.p_r_r1, '');
                this.initValue(t, AK.p_r_r2, '');
                this.initValue(t, AK.p_r_r3, '');
                this.initValue(t, AK.p_r_r1dw, '');
                this.initValue(t, AK.p_r_r2dw, '');
                this.initValue(t, AK.p_r_r3dw, '');
                this.initValue(t, AK.p_l_r1, '');
                this.initValue(t, AK.p_l_r2, '');
                this.initValue(t, AK.p_l_r3, '');
                this.initValue(t, AK.p_l_r1dw, '');
                this.initValue(t, AK.p_l_r2dw, '');
                this.initValue(t, AK.p_l_r3dw, '');
                this.initValue(t, AK.p_jiajiao, 90);
                this.initValue(t, AK.p_yfenkw, t['C' + AK.p_yfenkw] ? t['C' + AK.p_yfenkw].toString() : '');
                this.initValue(t, AK.p_zfenkw, t['C' + AK.p_zfenkw] ? t['C' + AK.p_zfenkw].toString() : '');
                this.initValue(t, AK.p_zysk, t['C' + AK.p_zysk] ? t['C' + AK.p_zysk].toString() : '');
                this.initValue(t, AK.p_yysk, t['C' + AK.p_yysk] ? t['C' + AK.p_yysk].toString() : '');
                this.initValue(t, AK.p_yyxkpk, t['C' + AK.p_yyxkpk] ? t['C' + AK.p_yyxkpk].toString() : '');
                this.initValue(t, AK.p_zyxkpk, t['C' + AK.p_zyxkpk] ? t['C' + AK.p_zyxkpk].toString() : '');
                this.initValue(t, AK.p_zfentype, XQType.normal);
                this.initValue(t, AK.p_yfentype, XQType.normal);
                this.initValue(t, AK.p_zyxqtype, XQType.none);
                this.initValue(t, AK.p_yyxqtype, XQType.none);

                break;
            case EntityCreateType.CornerPlate:
                this.initValue(t, AK.p_jiajiao, 120);
                this.initValue(t, AK.p_szykw, t['C' + AK.p_szykw] ? t['C' + AK.p_szykw].toString() : '');
                this.initValue(t, AK.p_syykw, t['C' + AK.p_syykw] ? t['C' + AK.p_syykw].toString() : '');
                this.initValue(t, AK.p_xzykw, t['C' + AK.p_xzykw] ? t['C' + AK.p_xzykw].toString() : '');
                this.initValue(t, AK.p_xyykw, t['C' + AK.p_xyykw] ? t['C' + AK.p_xyykw].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_r_r1, '');
                this.initValue(t, AK.p_r_r2, '');
                this.initValue(t, AK.p_r_r3, '');
                this.initValue(t, AK.p_r_r1dw, '');
                this.initValue(t, AK.p_r_r2dw, '');
                this.initValue(t, AK.p_r_r3dw, '');
                this.initValue(t, AK.p_l_r1, '');
                this.initValue(t, AK.p_l_r2, '');
                this.initValue(t, AK.p_l_r3, '');
                this.initValue(t, AK.p_l_r1dw, '');
                this.initValue(t, AK.p_l_r2dw, '');
                this.initValue(t, AK.p_l_r3dw, '');
                this.initValue(t, AK.p_sfentype, XQType.normal);
                this.initValue(t, AK.p_xfentype, XQType.normal);
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                break;
            case EntityCreateType.Foam:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_sksctype, XQType.normal);
                this.initValue(t, AK.p_xksctype, XQType.normal);
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                this.initValue(t, AK.p_isdjl, 0);
                break;
            case EntityCreateType.PlanK:
            case EntityCreateType.BeamBottomPlank:
            case EntityCreateType.MonoclinicPlank:
            case EntityCreateType.DoubleObliquePlank:
            case EntityCreateType.PlankCouch:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                if (iddd == EntityCreateType.PlankCouch) {
                    this.initValue(t, AK.p_zcsl, 0);
                } else {
                    this.initValue(t, AK.p_zcsl, 1);
                }
                if (!(iddd == EntityCreateType.MonoclinicPlank || iddd == EntityCreateType.DoubleObliquePlank)) {
                    this.initValue(t, AK.p_kxpy, (Number(t[AK.W]) / 2).toString());
                    this.initValue(t, AK.p_cxdw, (Number(t[AK.L]) / 2).toString());
                }
                break;
            case EntityCreateType.GroovePlank:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_zcsl, 1);
                this.initValue(t, AK.p_cxdw, (Number(t[AK.L]) / 2).toString());
                this.initValue(t, AK.p_dripLinetype, 0);
                this.initValue(t, AK.p_pklc, 0);
                break;
            case EntityCreateType.AngleAluminum:
            case EntityCreateType.LAngleAluminum:
            case EntityCreateType.LBottomALu:
            case EntityCreateType.ObliqueAngleAluminum:
                if (iddd != EntityCreateType.LAngleAluminum) {
                    this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                    this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                }
                this.initValue(t, "p_isSmooth", 0);
                break;
            case EntityCreateType.ProximateMatter:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                break;
            case EntityCreateType.CornerProximateMatter:
                this.initValue(t, AK.p_jiajiao, 90);
                this.initValue(t, AK.p_szykw, t['C' + AK.p_szykw] ? t['C' + AK.p_szykw].toString() : '');
                this.initValue(t, AK.p_syykw, t['C' + AK.p_syykw] ? t['C' + AK.p_syykw].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_r_r1, '');
                this.initValue(t, AK.p_r_r2, '');
                this.initValue(t, AK.p_r_r3, '');
                this.initValue(t, AK.p_r_r1dw, '');
                this.initValue(t, AK.p_r_r2dw, '');
                this.initValue(t, AK.p_r_r3dw, '');
                this.initValue(t, AK.p_l_r1, '');
                this.initValue(t, AK.p_l_r2, '');
                this.initValue(t, AK.p_l_r3, '');
                this.initValue(t, AK.p_l_r1dw, '');
                this.initValue(t, AK.p_l_r2dw, '');
                this.initValue(t, AK.p_l_r3dw, '');
                break;
            case EntityCreateType.LProximateMatter:
                this.initValue(t, AK.p_jiajiao, 90);
                this.initValue(t, AK.p_yfenkw, t['C' + AK.p_yfenkw] ? t['C' + AK.p_yfenkw].toString() : '');
                this.initValue(t, AK.p_zfenkw, t['C' + AK.p_zfenkw] ? t['C' + AK.p_zfenkw].toString() : '');
                this.initValue(t, AK.p_zcsl, 1);
                this.initValue(t, AK.p_dripLinetype, 0);
                break;
            case EntityCreateType.SectionProximateMatter:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                this.initValue(t, AK.p_sksctype, XQType.normal);
                this.initValue(t, AK.p_xksctype, XQType.normal);
                this.initValue(t, AK.p_dripLinetype, 0);
                this.initValue(t, AK.p_ddjsc, 0);
                this.initValue(t, AK.p_lrjian, 0);
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_pklc, 0);
                break;
            case EntityCreateType.SectionCProximateMatter:
                this.initValue(t, AK.p_jiajiao, 90);
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_szykw, t['C' + AK.p_szykw] ? t['C' + AK.p_szykw].toString() : '');
                this.initValue(t, AK.p_syykw, t['C' + AK.p_syykw] ? t['C' + AK.p_syykw].toString() : '');
                this.initValue(t, AK.p_xzykw, t['C' + AK.p_xzykw] ? t['C' + AK.p_xzykw].toString() : '');
                this.initValue(t, AK.p_xyykw, t['C' + AK.p_xyykw] ? t['C' + AK.p_xyykw].toString() : '');
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                break;
            case EntityCreateType.RChamferP:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_yctype, 0);
                break;
            case EntityCreateType.RChamferCP:
                this.initValue(t, AK.p_szykw, t['C' + AK.p_szykw] ? t['C' + AK.p_szykw].toString() : '');
                this.initValue(t, AK.p_syykw, t['C' + AK.p_syykw] ? t['C' + AK.p_syykw].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_r_r1, '');
                this.initValue(t, AK.p_r_r2, '');
                this.initValue(t, AK.p_r_r3, '');
                this.initValue(t, AK.p_r_r1dw, '');
                this.initValue(t, AK.p_r_r2dw, '');
                this.initValue(t, AK.p_r_r3dw, '');
                this.initValue(t, AK.p_l_r1, '');
                this.initValue(t, AK.p_l_r2, '');
                this.initValue(t, AK.p_l_r3, '');
                this.initValue(t, AK.p_l_r1dw, '');
                this.initValue(t, AK.p_l_r2dw, '');
                this.initValue(t, AK.p_l_r3dw, '');
                break;
            case EntityCreateType.LShrouding:
            case EntityCreateType.Shrouding:
            case EntityCreateType.AngleAluminumShrouding:
                this.initValue(t, AK.p_szykw, t['C' + AK.p_szykw] ? t['C' + AK.p_szykw].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                break;
            case EntityCreateType.DogTooth:
            case EntityCreateType.IntegrationDog:
                this.initValue(t, AK.p_stairW, 200);
                this.initValue(t, AK.p_iswbccfb, 0);
                this.initValue(t, AK.p_stairH, 170);
                this.initValue(t, AK.p_stairendH, t[AK.p_stairH]);
                this.initValue(t, AK.p_wbccW, 100);
                this.initValue(t, AK.p_wbccL, t[AK.W]);
                this.initValue(t, AK.p_wbccH, 150);
                this.initValue(t, AK.p_isstairpz, 1);
                this.initValue(t, AK.p_isstaircmfx, 1);
                this.initValue(t, AK.p_isqdpbpq, 0);
                this.initValue(t, AK.p_iswbpbpq, 1);
                this.initValue(t, AK.p_iswbcc, 0);
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                break;
            case EntityCreateType.StairPlank:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_zcdw, '150,' + (t[AK.L] - 300) + ',150');
                this.initValue(t, AK.p_zcjj, 56.3);
                this.initValue(t, AK.p_zcxf, 1);
                break;
            case EntityCreateType.STAIRS_CORNER_BRACE:
                this.initValue(t, AK.p_jiajiao, 120);
                this.initValue(t, AK.p_szykw, t['C' + AK.p_szykw] ? t['C' + AK.p_szykw].toString() : '');
                this.initValue(t, AK.p_syykw, t['C' + AK.p_syykw] ? t['C' + AK.p_syykw].toString() : '');
                this.initValue(t, AK.p_xzykw, t['C' + AK.p_xzykw] ? t['C' + AK.p_xzykw].toString() : '');
                this.initValue(t, AK.p_xyykw, t['C' + AK.p_xyykw] ? t['C' + AK.p_xyykw].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_zydw, '100');
                this.initValue(t, AK.p_yydw, '150');
                this.initValue(t, AK.p_zcxf, 1);
                this.initValue(t, AK.p_zcsl, 1);
                break;
            case EntityCreateType.StairSidePlant:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_sldw, t['C' + AK.sldw] ? t['C' + AK.sldw].toString() : '');
                this.initValue(t, AK.SKH, t[AK.BKH]);
                this.initValue(t, AK.XKH, t[AK.BKH]);
                this.initValue(t, AK.ZKH, t[AK.BKH]);
                this.initValue(t, AK.YKH, t[AK.BKH]);
                this.initValue(t, AK.ZYKH, t[AK.bkT]);
                this.initValue(t, AK.SXKH, t[AK.bkT]);
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_sksctype, XQType.normal);
                this.initValue(t, AK.p_xksctype, XQType.normal);
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                this.initValue(t, AK.p_iscj, 1);
                this.initValue(t, AK.p_ddcd, 0);
                this.initValue(t, AK.p_ddwz, '');

                this.initValue(t, AK.p_zkkw_cjkj, t[AK.zybk_cjkj] ? t[AK.zybk_cjkj].toString() : '');
                this.initValue(t, AK.p_ykkw_cjkj, t[AK.zybk_cjkj] ? t[AK.zybk_cjkj].toString() : '');
                this.initValue(t, AK.p_skkw_cjkj, t[AK.sxbk_cjkj] ? t[AK.sxbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xkkw_cjkj, t[AK.sxbk_cjkj] ? t[AK.sxbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xb1kw, t[AK.xbk_cjkj] ? t[AK.xbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xb2kw, t[AK.xbk_cjkj] ? t[AK.xbk_cjkj].toString() : '');
                break;
            case EntityCreateType.StairClapBoard:
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_qktype, 0);
                this.initValue(t, AK.p_pkl, 0);
                this.initValue(t, AK.p_pkw, 0);
                this.initValue(t, AK.p_isqL, 0);
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_sksctype, 0);
                this.initValue(t, AK.p_xksctype, 0);
                this.initValue(t, AK.p_zksctype, 0);
                this.initValue(t, AK.p_yksctype, 0);
                break;
            case EntityCreateType.StairStepCover:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                this.initValue(t, AK.p_sldw, t['C' + AK.sldw] ? t['C' + AK.sldw].toString() : '');
                this.initValue(t, AK.p_iscreat, 0);
                this.initValue(t, AK.p_gckdw, '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                break;
            case EntityCreateType.StairStepMask:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                break;
            case EntityCreateType.LineMouth:
            case EntityCreateType.MaterialMouth:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.hldw] ? t['C' + AK.hldw].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_sksctype, XQType.normal);
                this.initValue(t, AK.p_xksctype, XQType.normal);
                this.initValue(t, AK.p_zksctype, XQType.normal);
                this.initValue(t, AK.p_yksctype, XQType.normal);
                this.initValue(t, AK.p_kxpy, (Number(t[AK.W]) / 2).toString());
                this.initValue(t, AK.p_cxdw, (Number(t[AK.L]) / 2).toString());
                break;
            case EntityCreateType.Tube:
                this.initValue(t, AK.zhcs, '');
                this.initValue(t, AK.p_arrangement, 0);
                this.initValue(t, AK.p_partdirection, 0);
                this.initValue(t, AK.p_starttype, 0);
                this.initValue(t, AK.p_endtype, 0);
                this.initValue(t, AK.p_startextend, 0);
                this.initValue(t, AK.p_endextend, 0);
                break;
            case EntityCreateType.DorsalRidge:
                this.initValue(t, AK.zhcs, '');
                this.initValue(t, AK.p_arrangement, 0);
                this.initValue(t, AK.p_partdirection, 0);
                this.initValue(t, AK.p_kplateadjust, 0);
                this.initValue(t, AK.p_starttype, 0);
                this.initValue(t, AK.p_endtype, 0);
                this.initValue(t, AK.p_startextend, 0);
                this.initValue(t, AK.p_endextend, 0);
                break;
            case EntityCreateType.HorizontalDorsalRidge:
                this.initValue(t, AK.p_kplateadjust, 0);
                this.initValue(t, AK.p_partdirection, 0);
                this.initValue(t, AK.p_starttype, 0);
                this.initValue(t, AK.p_endtype, 0);
                this.initValue(t, AK.p_startextend, 0);
                this.initValue(t, AK.p_endextend, 0);
                break;
            case EntityCreateType.VerticalDorsalRidge:
                this.initValue(t, AK.p_kplateadjust, 0);
                this.initValue(t, AK.p_partdirection, 0);
                this.initValue(t, AK.p_starttype, 0);
                this.initValue(t, AK.p_endtype, 0);
                this.initValue(t, AK.p_startextend, 0);
                this.initValue(t, AK.p_endextend, 0);
                break;
            case EntityCreateType.Sandlestick:
                this.initValue(t, AK.p_xkkw, t['C' + AK.sxbkk] ? t['C' + AK.sxbkk].toString() : '');
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hldw, t['C' + AK.p_hldw] ? t['C' + AK.p_hldw].toString() : '');
                this.initValue(t, AK.p_r1, '');
                this.initValue(t, AK.p_r2, '');
                this.initValue(t, AK.p_r3, '');
                this.initValue(t, AK.p_r2dw, '');
                this.initValue(t, AK.p_r3dw, '');
                this.initValue(t, AK.p_qkw, 20);
                this.initValue(t, AK.p_qkh, 25);
                this.initValue(t, AK.p_skqkdw, '');
                this.initValue(t, AK.p_xkqkdw, '');
                this.initValue(t, AK.p_zkqkdw, '');
                this.initValue(t, AK.p_ykqkdw, '');
                this.initValue(t, AK.p_sksctype, 0);
                this.initValue(t, AK.p_xksctype, 0);
                this.initValue(t, AK.p_zksctype, 0);
                this.initValue(t, AK.p_yksctype, 0);
                this.initValue(t, AK.p_isdjl, 0);
                break;
            case EntityCreateType.LUcode:
                this.initValue(t, AK.p_jiajiao, 90);
                break;
            case EntityCreateType.SquareTube:
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hjwz, '');
                this.initValue(t, AK.p_offsetvalue, 0);
                this.initValue(t, AK.p_spkw, '');
                this.initValue(t, AK.p_szkw, '');
                this.initValue(t, AK.p_offsettype, 0);
                this.initValue(t, AK.p_selecttarget, 0);
                this.initValue(t, AK.p_kws, {});
                this.initValue(t, AK.p_offsets, []);
                this.initValue(t, AK.p_offsetdis, []);
                break;
            case EntityCreateType.LSquareTube:
                this.initValue(t, AK.p_jiajiao, 90);
                this.initValue(t, AK.p_zkkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_ykkw, t['C' + AK.zybkk] ? t['C' + AK.zybkk].toString() : '');
                this.initValue(t, AK.p_hjwz2, '');
                this.initValue(t, AK.p_offsetvalue2, 0);
                this.initValue(t, AK.p_spkw2, '');
                this.initValue(t, AK.p_szkw2, '');
                this.initValue(t, AK.p_hjwz, '');
                this.initValue(t, AK.p_offsetvalue, 0);
                this.initValue(t, AK.p_spkw, '');
                this.initValue(t, AK.p_szkw, '');
                this.initValue(t, AK.p_offsettype, 0);
                this.initValue(t, AK.p_selecttarget, 0);
                this.initValue(t, AK.p_offsettype2, 0);
                this.initValue(t, AK.p_selecttarget2, 0);
                this.initValue(t, AK.p_kws, {});
                this.initValue(t, AK.p_kws2, {});
                this.initValue(t, AK.p_offsets, []);
                this.initValue(t, AK.p_offsetdis, []);
                this.initValue(t, AK.p_offsets2, []);
                this.initValue(t, AK.p_offsetdis2, []);
                break;
            case EntityCreateType.AngleIron:
                this.initValue(t, AK.p_zykj, '');
                this.initValue(t, AK.p_yykj, '');
                this.initValue(t, AK.p_hjwz, '');
                this.initValue(t, AK.p_bind, 1);
                break;
            case EntityCreateType.QiAngleIron:
                this.initValue(t, AK.p_spkw, '');
                this.initValue(t, AK.p_szkw, '');
                this.initValue(t, AK.p_lrtype, 1);
                this.initValue(t, AK.p_bind, 1);
                break;
            case EntityCreateType.ZAngleIron:
                this.initValue(t, AK.p_skspkj, '');
                this.initValue(t, AK.p_skszkj, '');
                this.initValue(t, AK.p_xkspkj, '');
                this.initValue(t, AK.p_xkszkj, '');
                this.initValue(t, AK.p_create, 0);
                this.initValue(t, AK.p_dbtg, 0);
                this.initValue(t, AK.p_lrtype, 0);
                this.initValue(t, AK.p_bind, 1);
                break;
            case EntityCreateType.JiAngleIron:
                this.initValue(t, AK.p_zctgjl, 0);
                this.initValue(t, AK.p_yctgjl, 0);
                this.initValue(t, AK.p_sbkj, '');
                this.initValue(t, AK.p_zbkj, '');
                this.initValue(t, AK.p_ybkj, '');
                break;
            case EntityCreateType.AoAngleIron:
                this.initValue(t, AK.p_zycg, 0);
                this.initValue(t, AK.p_yycg, 0);
                this.initValue(t, AK.p_sbkj, '');
                this.initValue(t, AK.p_zbkj, '');
                this.initValue(t, AK.p_ybkj, '');
                break;
            case EntityCreateType.cutplate:
                this.initValue(t, AK.p_zkkw_cjkj, t[AK.zybk_cjkj] ? t[AK.zybk_cjkj].toString() : '');
                this.initValue(t, AK.p_ykkw_cjkj, t[AK.zybk_cjkj] ? t[AK.zybk_cjkj].toString() : '');
                this.initValue(t, AK.p_skkw_cjkj, t[AK.sxbk_cjkj] ? t[AK.sxbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xkkw_cjkj, t[AK.sxbk_cjkj] ? t[AK.sxbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xb1kw, t[AK.xbk_cjkj] ? t[AK.xbk_cjkj].toString() : '');
                this.initValue(t, AK.p_xb2kw, t[AK.xbk_cjkj] ? t[AK.xbk_cjkj].toString() : '');
                this.initValue(t, AK.p_zklpcdw, '');
                this.initValue(t, AK.p_yklpcdw, '');
                this.initValue(t, AK.p_sklpcdw, '');
                this.initValue(t, AK.p_xklpcdw, '');
                this.initValue(t, AK.system_type, 0);
                break;
            case EntityCreateType.PullTab:

                break;
            case EntityCreateType.SquareBuckle:

                break;
        }
    }

}